﻿using System.Linq;
using OpenRiaServices.DomainServices.EntityFramework;
using OpenRiaServices.DomainServices.Hosting;
using OpenRiaServices.Issue92.Web.Models;

namespace OpenRiaServices.Issue92.Web.Services
{
    [EnableClientAccess]
    public class Issue92Service : DbDomainService<Issue92Context>
    {
        public IQueryable<ParentEntity> GetParentEntities()
        {
            return this.DbContext.ParentEntities;
        }

        public IQueryable<ChildEntity> GetChildEntities()
        {
            return this.DbContext.ChildEntities;
        }
    }
}